
<!doctype html>
<html lang="zh">

<head>
  <meta charset="utf-8" />
  <link rel="apple-touch-icon" sizes="76x76" href="assets/img/apple-icon.png">
  <link rel="icon" type="image/ico" href="__PUBLIC__/assets/images/favicon.ico" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <title>
    个人中心 - {$info.title}
  </title>
  <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no' name='viewport' />
  <!--     Fonts and icons     -->
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/Home/static/css/0e08e0bac0af4e37872b2b7279ccad99.css" />
  <link rel="stylesheet" href="__PUBLIC__/Home/static/css/font-awesome.min.css">
  <!-- CSS Files -->
  <link href="__PUBLIC__/Home/static/css/material-dashboard.css" rel="stylesheet" />
</head>

<body class="">
  <div class="wrapper">
    <div class="sidebar" data-color="purple" data-background-color="white">
      <div class="logo">
        <a href="/index.php" class="simple-text logo-normal">
          {$info.logo}
        </a>
      </div>
      <div class="sidebar-wrapper">
        <ul class="nav">
          <li class="nav-item">
            <a class="nav-link" href="/index.php">
              <i class="material-icons">dashboard</i>
              <p>首页</p>
            </a>
          </li>
          <li class="nav-item ">
            <a class="nav-link" href="{:U('index/dsp')}">
              <i class="material-icons">dashboard</i>
              <p>短视频去水印</p>
            </a>
          </li>
          <notempty name="_SESSION['user']['id']">
              <li class="nav-item active">
            <a class="nav-link" href="{:U('user/index')}">
              <i class="material-icons">dashboard</i>
              <p>个人中心</p>
            </a>
          </li>
          <else/>
              <li class="nav-item active">
                <a class="nav-link" href="{:U('login/index')}">
                  <i class="material-icons">dashboard</i>
                  <p>登录/注册</p>
                </a>
              </li>
          </notempty>
           
<!--           <li class="nav-item "> -->
<!--             <a class="nav-link" href="news.php"> -->
<!--               <i class="material-icons">dashboard</i> -->
<!--               <p>IP签名档制作</p> -->
<!--             </a> -->
<!--           </li> -->
<!--           <li class="nav-item "> -->
<!--             <a class="nav-link" href=""> -->
<!--               <i class="material-icons">dashboard</i> -->
<!--               <p>缩短网址</p> -->
<!--             </a> -->
<!--           </li> -->
<!--           <li class="nav-item "> -->
<!--             <a class="nav-link" target= _blank href=""> -->
<!--               <i class="material-icons">dashboard</i> -->
<!--               <p>微博热搜</p> -->
<!--             </a> -->
<!--           </li> -->
          <!-- your sidebar here -->
        </ul>
      </div>
    </div>
    <div class="main-panel">
      <!-- Navbar -->
      <nav class="navbar navbar-expand-lg navbar-transparent navbar-absolute fixed-top ">
        <div class="container-fluid">
          <div class="navbar-wrapper">
            <a class="navbar-brand">UserCenter</a>
          </div>
          <button class="navbar-toggler" type="button" data-toggle="collapse" aria-controls="navigation-index" aria-expanded="false" aria-label="Toggle navigation">
            <span class="sr-only">Toggle navigation</span>
            <span class="navbar-toggler-icon icon-bar"></span>
            <span class="navbar-toggler-icon icon-bar"></span>
            <span class="navbar-toggler-icon icon-bar"></span>
          </button>
          <div class="collapse navbar-collapse justify-content-end">
            <ul class="navbar-nav">
              <li class="nav-item">
                <a class="nav-link">
                  <i class="material-icons">notifications</i> Notifications
                </a>
              </li>
              <!-- your navbar here -->
            </ul>
          </div>
        </div>
      </nav>
      <!-- End Navbar -->
       <div class="content">
        <div class="container-fluid">
          <div class="card">
            <div class="card-header card-header-primary">
              <h3 class="card-title">个人中心</h3>
            </div>
            <div class="card-body">
              <div class="row">
                <div class="col-md-12">
                  <a href="{:U('login/reg')}" class="btn btn-primary btn-block" id="tuichu">退出登录</a>
                  <p>注意事项:</p>
                  <ol>
                    <li>如需修改密码请直接填写提交</li>
                    <li>邮箱和QQ无法修改，如需修改请联系管理员-{$adminname} QQ :{$adminqq}</li>
                  </ol>
                  <div>
                  <div class="form-group">
                      <div id="myDiv1"><label>帐号</label></div>
                      <span class="form-control">{$userinfo.username}</span>
                  </div>
                  <div class="form-group">
                      <div id="myDiv1"><label>密码</label></div>
                      <input type="password" name="password" id="pass" placeholder="请输入密码" class="form-control">
                  </div>
                  <div class="form-group">
                      <div id="myDiv1"><label>qq</label></div>
                      <span class="form-control">{$userinfo.qq}</span>
                  </div>

                  </div>
                </div>
              </div>
            </div>
            <div class="col-md-12">
              <div class="places-buttons">
                <div class="row">
                  <div class="col-lg-8 col-md-10 ml-auto mr-auto">       
                      <div class="col-md-12">
                        <button class="btn btn-primary btn-block" id="upinfo">修改信息</button>
                         
                      </div>
                      <div class="col-md-12">
                        
                      </div>
                  </div>
                </div>
              </div>
            </div>

          </div>
          <div class="card">
            
            <div class="card-body">
              <div class="row">
                <div class="col-md-12">
                  
                  <p>注意事项:</p>
                  <ol>
                    <li>提示充值或者续费成功后如没有立即显示再次刷新即可</li>
                    <li>如提示成功刷新多次后仍然没有到账请联系管理员-{$adminname} QQ :{$adminqq}</li>
                  </ol>
                  <div>
                  <div class="form-group">
                      <eq name="userinfo.status" value="0"><span class="btn btn-success btn-block">
                       帐号状态：正常</span></eq>
                        <eq name="userinfo.status" value="1"><span class="btn btn-denger btn-block">
                        帐号状态：禁用-该帐号被禁止使用本站功能</span></eq>  
                      
                      <span class="btn btn-warning btn-block">
                        是否会员：
                        <eq name="userinfo.isvip" value="0">是 到期时间： {$vipendtime|date="Y-m-d ",###} 当天剩余次数：<gt name="userinfo.vipcount" value="0">{$userinfo.vipcount}</gt><eq name="userinfo.usercount" value="0">不限制</eq></eq>
                        <eq name="userinfo.isvip" value="1">否 当天剩余次数：<gt name="userinfo.usercount" value="0">{$userinfo.usercount}</gt><eq name="userinfo.usercount" value="0">不限制</eq></eq> 
                        
                      </span>

                  </div>
                  <div class="form-group">
                      <div id="myDiv1"><label>激活会员</label></div>
                      <input type="text" id="kami" class="form-control" placeholder="请输入购买的卡密">
                  </div>
                  <button class="btn btn-info btn-block" id="jihuo">激活会员</button>
                  </div>
                </div>
              </div>
            </div>
            <div class="col-md-12">
              <div class="places-buttons">
                <div class="row">
                  
                </div>
              </div>
            </div>
            
          </div>
        </div>
      </div>
      <footer class="footer">
        <div class="container-fluid">
          <nav class="float-left">
            <ul>
              <li>
                <a>
                  {$info.banquan}
                </a>
              </li>
<!--               <li> -->
<!--                 <a href=" "> -->
<!--                   About Us -->
<!--                 </a> -->
<!--               </li> -->
<!--               <li> -->
<!--                 <a href=" "> -->
<!--                   Blog -->
<!--                 </a> -->
<!--               </li> -->
            </ul>
          </nav>
          <div class="copyright float-right">
            &copy;
            <script>
              document.write(new Date().getFullYear())
            </script>, {$info.banquan1}
          </div>
        </div>
      </footer>
    </div>
  </div>
  <!--   Core JS Files   -->
  <script src="__PUBLIC__/Home/static/js/jquery.min.js" type="text/javascript"></script>
  <script src="__PUBLIC__/Home/static/js/popper.min.js" type="text/javascript"></script>
  <script src="__PUBLIC__/Home/static/js/bootstrap-material-design.min.js" type="text/javascript"></script>
  <script src="__PUBLIC__/Home/static/js/perfect-scrollbar.jquery.min.js"></script>
  <!-- Chartist JS -->
  <script src="__PUBLIC__/Home/static/js/chartist.min.js"></script>
  <!--  Notifications Plugin    -->
  <script src="__PUBLIC__/Home/static/js/bootstrap-notify.js"></script>
  <!-- Control Center for Material Dashboard: parallax effects, scripts for the example pages etc -->
  <script src="__PUBLIC__/Home/static/js/material-dashboard.min.js" type="text/javascript"></script>
  <script type="text/javascript">
    $("#upinfo").click(function () {
        var e = 0;
        var pwd = $("#pass").val();
        if (pwd == "") {
            md.tostinfo('top','right','请输入密码');//
            return false;
        }
        if (pwd.length < 6) {
            md.tostinfo('top','right','密码长度不正确');//
            return false;
        }
        if (e == 0) {
            $.post("{:U('user/upinfo')}", {pass: pwd }, function (data) {
                if (data.status == '1') {
                    alert(data.info);//
                    window.location.href = data.url;
                } else {
                    md.tostinfo('top','right',data.info);//
                    
                }
            })
        }
    })
    $("#tuichu").click(function () {
        var e = 0;
        
        if (e == 0) {
            $.post("{:U('user/LoginOut')}", { id:1 }, function (data) {
                if (data.status == '1') {
                    alert(data.info);//
                    window.location.href = data.url;
                } else {
                    md.tostinfo('top','right',data.info);//
                    
                }
            })
        }
    })
    $("#jihuo").click(function () {
        var e = 0;
        var kami = $("#kami").val();
        if (kami == "") {
            md.tostinfo('top','right','卡密不能为空');//
            return false;
        }
        if (kami.length < 12) {
            md.tostinfo('top','right','卡密长度不正确');//
            return false;
        }
        if (e == 0) {
            $.post("{:U('user/ktvip')}", { km:kami }, function (data) {
                if (data.status == '1') {
                    alert(data.info);//
                    window.location.href = data.url;
                } else {
                    md.tostinfo('top','right',data.info);//
                    
                }
            })
        }
    })
</script>

</body>
    
</html>